package com.sky.edumanageapi.comment.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("comment")
public class Comment {
    @ApiModelProperty(value = "评论id")
    @TableId(type = IdType.AUTO)
    Integer commentId;
    @ApiModelProperty(value = "用户id")
    Integer userId;
    @ApiModelProperty(value = "课程id")
    Integer courseId;
    @ApiModelProperty(value = "评论内容")
    String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    Date updateTime;
}
